package Zuoye.zuoye5;

import java.math.BigDecimal;
import java.util.Scanner;

public class Jinka extends  Money{
    public Jinka(String id, String name, int phone, double money) {
        super(id, name, phone, money);
    }

    @Override
    public void payMoney( double paymoney) {
        BigDecimal newmoney = BigDecimal.valueOf(paymoney).multiply(BigDecimal.valueOf(0.8));
        if (newmoney.doubleValue()>200){
            System.out.println("消费满200赠送洗车票一张");
        }
        System.out.println("使用金卡支付"+"实际支付："+newmoney);

    }
}
